package org.example.system.model.form;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 交易记录表单模型类
 * 用于封装交易记录相关数据
 */
@Data
public class TradeRecordForm {

    @Schema(description = "交易记录ID，主键，自动递增")
    private Integer id;

    @Schema(description = "订单ID")
    private Integer orderId;

    @Schema(description = "承租人ID")
    private Integer tenantId;

    @Schema(description = "车辆ID")
    private Integer vehicleId;

    @Schema(description = "商户订单号id")
    private String outTradeNo;

    @Schema(description = "微信支付订单号")
    private String transactionId;

    @Schema(description = "交易金额")
    private BigDecimal totalFee;

    @Schema(description = "支付时间")
    private LocalDateTime paymentTime;

    @Schema(description = "支付方式")
    private Integer paymentType;

    @Schema(description = "交易状态")
    private Integer tradeStatus;

    @Schema(description = "创建时间")
    private LocalDateTime createTime;

    @Schema(description = "更新时间")
    private LocalDateTime updateTime;

    @Schema(description = "逻辑删除")
    private Integer deleted;
}
